package in.developersguide.log4j.propertyConfig;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
/**
 * 
 * @author Bibek
 * The log4j levels follow the following order.
 *	DEBUG
 *	INFO
 *	WARN
 *	ERROR
 *	FATAL
 */
public class HelloWorldPropertyConfigDemo {
	static final Logger logger = Logger.getLogger(HelloWorldPropertyConfigDemo.class);
	public static void main(String[] args) {
		PropertyConfigurator.configure("config/log4j/log4j.properties");
		logger.info("Sample info message");
		logger.warn("Sample warn message");
		logger.error("Sample error message");
		logger.fatal("Sample fatal message");
	}
}
